package com.wifi.books.service.impl;

import com.wifi.books.dao.BookDAO;
import com.wifi.books.entity.TypeEntity;
import com.wifi.books.service.BookTypeService;

import java.sql.SQLException;
import java.util.List;

public class BookTypeServiceImpl implements BookTypeService {
    BookDAO bookDAO= BookDAO.getBookDAO();
    @Override
    public List<Object> bookTypeList() {
        List<Object> list = null;
        try {
            list = bookDAO.bookTypeList();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return list;
    }

    @Override
    public List<Object> bookSecondTypeList(Integer ftypeId) {
        List<Object> list = null;
        try {
           list = bookDAO.bookSecondTypeList(ftypeId);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return list;
    }
}
